//�导入vue-router
import VueRouter from 'vue-router'

//引入各个组件
import home from './components/tabar/home.vue'
import member from './components/tabar/member.vue'
import search from './components/tabar/search.vue'
import shopcar from './components/tabar/shopcar.vue'



// 3.创建路有对象�
var router = new VueRouter({
	routes: [
		{path:'/',redirect:'/home'},//默认打开就进入home组件
		{path: '/home', component: home},
		{path: '/member', component: member},
		{path: '/search', component: search},
		{path: '/shopcar', component: shopcar},
	],
	linkActiveClass: 'mui-active'
})

//暴露router
export default router
